/*
 * =====================================================================================
 *
 *       Filename:  Text.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2015年03月27日 22时08分38秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  LiuYi (), swliuyi@gmail.com
 *   Organization:  
 *
 * =====================================================================================
 */
#ifndef TEXT_H
#define TEXT_H


#include <string.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <limits.h>

using namespace std;

class Text
{
    protected:
        int m_sentNum;
        vector<vector<string> > m_text;//passage-sentence-char
        bool LoadText(string path);
        int SentCut(char * binaryStr, int length);
        virtual bool ReadOneChar(char * binaryStr, int length, string &oneChar, int & index) = 0;
    public:
        vector<string> operator [] (int n);
        Text();
        int SentSize();
        virtual ~Text();
};

#endif
